﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddNewMenu.ascx.cs"
    Inherits="NLLSite.Administrator.UserControl.AddNewMenu" %>
<style type="text/css">
    .style1
    {
        width: 261px;
    }
    .style2
    {
        width: 208px;
        vertical-align:middle;
    }
</style>
<div class="box box-100">
    <div class="boxin">
        <div class="header">
            <h3>
                Thêm mới Menu</h3>
        </div>
        <div style="padding: 18px;">
            <!--<form class="basic" action="" method="post" enctype="multipart/form-data"><!-- Default basic forms -->
            <div class="inner-form">
                <table>
                    <tr>
                        <td class="style2">
                            Tên Menu :
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="TxtMenu" runat="server" Width="250px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtMenu"
                                ErrorMessage="*"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Vị Trí :
                        </td>
                        <td class="style1">
                            <asp:DropDownList ID="Ddlposi" runat="server" Width="256px" AutoPostBack="True" 
                                onselectedindexchanged="Ddlposi_SelectedIndexChanged">
                                <asp:ListItem>Top</asp:ListItem>
                                <asp:ListItem Value="Chủ Đề">Chủ Đề</asp:ListItem>
                                <asp:ListItem Value="Hội Thảo">Hội Thảo</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style2" valign="top">
                            Chọn
                            Menu Cha :
                        </td>
                        <td class="style1">
                            <asp:ListBox ID="LbxMenuid" runat="server" DataTextField="Name"
                                DataValueField="ID" Width="255px">
                            </asp:ListBox>
                            <asp:LinqDataSource ID="LinqDataSource3" runat="server" 
                                ContextTypeName="DAL_Class.NLLDataContext" Select="new (ID, Name)" 
                                TableName="Menus" Where="Position == @Position">
                                <WhereParameters>
                                    <asp:Parameter DefaultValue="Chủ Đề" Name="Position" Type="String" />
                                </WhereParameters>
                            </asp:LinqDataSource>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Số Thứ Tự
                            :</td>
                        <td class="style1">
                            <asp:TextBox ID="TxtSortNo" runat="server" Width="250px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="TxtSortNo" Display="Dynamic" ErrorMessage="Nhập Số" 
                                ValidationExpression="^[0-9][0-9]*$"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxtSortNo"
                                ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Meta Title :
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="TxtMetatit" runat="server" Width="250px"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Meta Description :
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="TxtMetades" runat="server" Width="250px"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Meta Keys :
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="TxtMetakey" runat="server" Width="250px"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Meta Robot :
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="TxtMetaTo" runat="server" Width="250px"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Meta Author :
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="TxtMetaaut" runat="server" Width="250px"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Trạng Thái :</td>
                        <td class="style1">
                            <asp:CheckBox ID="CbcStatu" runat="server" Text="Hiện" />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style2">
                            &nbsp;
                        </td>
                        <td class="style1">
                            <asp:Label ID="LblCheck" runat="server"></asp:Label>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            &nbsp;
                        </td>
                        <td class="style1">
                            <asp:Button ID="BtnAdd" runat="server" Text="Thêm mới" OnClick="BtnAdd_Click"
                                CssClass="altbutton" />
                            <asp:Button ID="Button2" runat="server" Text="Thiết Lập Lại" OnClick="Button2_Click"
                                CssClass="altbutton" />
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
